package com.gt.web.controller.app;

import com.gt.app.domain.dto.EsCheckReportDto;
import com.gt.app.service.EsCheckReportService;
import com.gt.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("checkReport")
@Api(tags = "结肠癌筛查检查结果")
public class CheckReportController {

    @Autowired
    private EsCheckReportService esCheckReportService;


    @ApiOperation(value = "根据checkId查询检查结果")
    @GetMapping(value = "getCheckReportById")
    public AjaxResult getCheckReportById(String checkId) {
        List<EsCheckReportDto> checkReportList = esCheckReportService.getCheckReportById(checkId);
        return AjaxResult.success(checkReportList);
    }
}
